← Back
Editing: index-legacy99.js
System.register(["./utils-lib-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./index-legacy100.js?v=1765440387"],function(e,t){"use strict";var n,a,o,r,u,l,i,s,d,c,f,v,h,m,p,y,g,b,w,x,C,_,k,L,$,A,I,M,j,B,E,S,R,T,V,W,H,N,q;return{setters:[function(e){n=e.u,a=e.bu,o=e.L,r=e.B,u=e.e},function(e){l=e.c,i=e.W,s=e.X,d=e.b,c=e.aE,f=e.as,v=e.r,h=e.t,m=e.g,p=e.w,y=e.a1,g=e.p,b=e.a5,w=e.aM,x=e.q,C=e.v,_=e.y,k=e.F,L=e.a$,$=e.x,A=e.L,I=e.C,M=e.M,j=e.A,B=e.H,E=e.I,S=e.e,R=e.N,T=e.J,V=e.aN,W=e.d,H=e.ay,N=e.z},function(e){q=e._}],execute:function(){var z={class:"flex flex-col p-[1.2rem]"},F=["onClick"],J=l({__name:"index",props:i({options:{default:function(){return[]}},store:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},showContent:{type:Boolean,default:!0},contentClass:{default:"router-tabs-content"}},{modelValue:{},modelModifiers:{}}),emits:i(["cutTab","afterLeave"],["update:modelValue"]),setup:function(e,u){var l=u.emit,i=W(function(){return o(function(){return t.import("./index-legacy169.js?v=1765440387")},void 0,t.meta.url)}),J=e,O=l,U=s(e,"modelValue"),X=n(),D=X.mainWidth,G=X.forceLtd,K=X.aliyunEcsLtd,P=X.payment,Q=X.isHideAd,Y=d(),Z=c(),ee=f(J.options),te=v(!0),ne=v(!1),ae=v("0px"),oe=v(0),re=v(),ue=v(),le="".concat(Y.path.split("/")[1],"_router").toUpperCase(),ie=h(P.value).authType,se=m(function(){return"router-tabs-content"===J.contentClass});p(function(){return Y.name},function(){if(ve())fe(Y.name),U.value=Y.name;else{var e=localStorage.getItem(le)||ee.value[0].name;Z.push({name:e}),fe(e),U.value=e}});var de=function(e){var t=e.target.offsetLeft,n=e.target.offsetWidth;ae.value="".concat(t+n-22,"px"),ne.value=!0},ce=y(re,function(e){var t=e[0].contentRect.width;oe.value=t,te.value=D.value-320>=oe.value}),fe=function(e){localStorage.setItem(le,e)},ve=function(){var e=Y.path.split("/");return e.length>2&&""!=e[2]},he=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];U.value=e,t&&fe(e),Y.name!==e&&n&&Z.push({name:e})};return p(function(){return r.value},function(e){var t,n=e.find(function(e){return-1!==Y.path.indexOf(e.path)});if(null!=n&&n.children&&Array.isArray(n.children)&&ee.value.forEach(function(e){var t=n.children.find(function(t){return e.path===t.name});e.show=!t||t.show}),null===(t=ee.value.find(function(e){return e.name===Y.name}))||void 0===t||!t.show){var a=ee.value.filter(function(e){return e.show});a&&a.length&&he(a[0].name)}},{immediate:!0}),p(D,function(){te.value=D.value-320>=oe.value}),g(function(){var e,t,n=localStorage.getItem(le);if(ee.value.length||(ee.value=a(null===(e=Y.matched[1])||void 0===e?void 0:e.children,"array",[])),"/mail"===(null===(t=Y.matched[1])||void 0===t?void 0:t.path)&&ee.value.forEach(function(e){e.show=!0}),J.store)return ve()?he(Y.name):he(n||ee.value[0].name)}),b(function(){ce.stop()}),function(t,n){var a=q,o=H,r=w("router-view");return x(),C("div",z,[_("div",{class:T(["header-tabs",{disabled:e.disabled}])},[_("div",{ref_key:"headerChildContentRef",ref:re,class:"flex flex-wrap"},[(x(!0),C(k,null,L($(ee),function(e,t){var a,o;return x(),C(k,{key:t},[e.show?(x(),C("div",{key:0,ref_for:!0,ref_key:"tabListRef",ref:ue,class:T(["header-child-tab",{"active-tab":U.value===e.name,"!hidden":null==e||null===(a=e.meta)||void 0===a?void 0:a.ignore}]),onClick:function(t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];J.disabled||(U.value!==e||t)&&(fe(e),U.value=e,Z.push({name:e}),O("cutTab",e))}(e.name)},onMouseenter:de,onMouseleave:n[0]||(n[0]=function(e){return ne.value=!1})},N(null===(o=e.meta)||void 0===o?void 0:o.title),43,F)):I("",!0)],64)}),128))],512),t.$slots.right?A(t.$slots,"right",{key:0},void 0,!0):I("",!0),t.$slots.right?I("",!0):(x(),M(o,{key:1,width:"580",disabled:"free"!==$(ie),"show-arrow":!1,"popper-style":"padding: 0;border-radius: 16px;overflow: hidden;","popper-class":"el-product-state-popover"},{reference:j(function(){return[B(S(a,{"is-home":!0,"disable-pro":!0},null,512),[[E,$(te)&&!($(G)||$(K))&&!$(Q)]])]}),default:j(function(){return[(x(),M(R($(i))))]}),_:1},8,["disabled"]))],2),e.showContent?(x(),C("div",{key:0,class:T(["",{"module-ui":$(se),"mt-[1.2rem]":$(se)}])},[t.$slots.default?(x(),C("div",{key:0,class:T(e.contentClass)},[A(t.$slots,"default",{},void 0,!0)],2)):(x(),C("div",{key:1,class:T(e.contentClass)},[S(r,null,{default:j(function(e){var t=e.Component;return[S(V,{name:"fade",mode:"out-in",onAfterLeave:n[1]||(n[1]=function(e){return O("afterLeave")})},{default:j(function(){return[(x(),M(R(t)))]}),_:2},1024)]}),_:1})],2))],2)):I("",!0)])}}});e("_",u(J,[["__scopeId","data-v-d31ba262"]]))}}});
Save File
Cancel